package itheima.zuoye.test7;

public class Test {
    public static void main(String[] args) {
       print(new Student("小学生",12,"济南历下区"));
       print(new Teracher("大老师",35,"济南历下区"));


    }
    public static void print(Person p) {
        p.write();
        p.info();

    }
}
